package com.saascloud.core.pojo;


import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author: liangxu
 * @Contact: one_dream@aliyun.com
 * @Date: 2022/4/25 14:23
 * @Version: 1.0
 * @Description:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class PageParam {
    public static final Integer PAGE_NO = 1;
    public static final Integer PAGE_SIZE = 10;

    @ApiModelProperty(name = "当前页",required = true)
    public Integer pageNo = 1;

    @ApiModelProperty(name = "每页总数",required = true)
    public Integer pageSize = 10;

    /**
     * 是否count查询
     */
    @Builder.Default
    private boolean count = true;

}
